package com.ls.pattern.behavior.chain_responsibility;

//教学主任
public class DepartmentApprover extends Approver {
    public DepartmentApprover(String name) {
        super(name);
    }

    @Override
    public void processRequest(PurchaseRequest request) {
        if (request.getPrice() <= 5000) {
            System.out.println("教学主任处理");
        }else {
           nextApprover.processRequest(request);
        }
    }
}
